<template>
  <el-menu :default-openeds="['1', '3']" style="height: 100vh"
           text-color="red"
           active-text-color="green"
           :collapse="isCollapse"
           router
  >
    <div style="height: 60px;line-height:60px; text-align:center">
      <img src="../assets/logo.png" style="width:20px;position: relative;top:5px;margin-right: 5px">
      <b style="color:black" v-show="logoTextShow">拍卖系统</b>
    </div>


    <el-aside width="200px">
      <el-col>
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          router
          unique-opened
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>拍品管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/person">入库单列表</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/buyTicketsRecordView">入库单审核</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/receiptTypeList">入库类型列表</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>订单管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/issueList">出库单列表</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/buyTicketsRecordView">出库单审核</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/issueTypeList">出库类型列表</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>专场管理</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/godownList">仓库列表</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-col>
    </el-aside>

  </el-menu>
</template>

<script>
export default {
  name: "Aside",
  props:{
    isCollapse:Boolean,
    logoTextShow:Boolean
  }
}
</script>

<style scoped>

</style>
